package com.xxx.constant;

/**
 * 全局异常处理的常量
 */
public enum GlobleExceptioniContants {

    // new GlobleExceptioniContants("xx","10000");
    SYSTEM_ERROR("程序错误,请稍后再试....", "10001"),

    USERNAME_ERROR("用户名错误", "10002"),

    PASSWORD_ERROR("密码错误", "10003"),

    USERNAME_IS_NOT_NULL("用户名不能为空", "10004"),

    PHONE_IS_REGISTER("手机号已被注册", "10005"),

    CODE_ERROR("验证码错误,请核验后重新输入 ", "10006"),

    NO_CODE("请先获取验证码", "10007"),

    USER_REGISTER_SMSCODE_NULL("验证码不能为空,请先获取验证码", "10008"),

    BAI_PIAO_JING_GAO("没有购买,休想白嫖!!!", "10009");


    private String messasge;
    private String code;

    /**
     * 构造器
     *
     * @param messasge
     * @param code
     */
    GlobleExceptioniContants(String messasge, String code) {
        this.messasge = messasge;
        this.code = code;
    }

    public String getMessasge() {
        return messasge;
    }

    public String getCode() {
        return code;
    }
    }